package day10;


import org.junit.Test;

public class EnumDemo {
    public static void main(String[] args) {
        Color color = Color.RED;
        System.out.println(color); // 输出：RED
    }

    @Test
    public void test1() {
        System.out.println(Color.RED.getHexCode());
    }

    @Test
    public void test2() {
        //遍历所有的枚举值
        for (Season season : Season.values()) {
            System.out.println(season);
            System.out.println(season.getName() + " : " + season.getDescription());
        }
    }
}